<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:67:"/www/wwwroot/qutoutiao.test/ffxiang/index/view/article/ffxiang.html";i:1600137041;s:63:"/www/wwwroot/qutoutiao.test/ffxiang/index/view/article/top.html";i:1600137040;s:66:"/www/wwwroot/qutoutiao.test/ffxiang/index/view/article/header.html";i:1600137041;s:66:"/www/wwwroot/qutoutiao.test/ffxiang/index/view/article/footer.html";i:1600137041;}*/ ?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
<meta name="renderer" content="webkit">
<meta name="robots" content="all">
<?php
	if(!empty($name['title'])){
		$title=$name['title'].' - '._webfig('title');
	}else if(!empty($user['username'])){
		$title=$user['username'].' - 个人主页|'._webfig('dtitle');
	}else{
		$title=_webfig('title');
	}
	if(!empty($name['description'])){
		$description=$name['description'].' - '._webfig('description');
	}else{
		$description=_webfig('description');
	}
	if(!empty($name['keywords'])){
		$keywords=$name['keywords'].' - '._webfig('keywords');
	}else{
		$keywords=_webfig('keywords');
	}
?>
<title><?php echo $title; ?></title>
<meta name="description" content="<?php echo $description; ?>" />
<meta name="keywords" content="<?php echo $keywords; ?>" />
<script type="text/javascript">
	var sx_url='<?php echo _webfig('url'); ?>';
	var token='<?php echo _token(); ?>';
</script>
<div style="display: none;"><script src="https://s13.cnzz.com/z_stat.php?id=1271205468&web_id=1271205468" language="JavaScript"></script></div><SCRIPT Language=VBScript><!--

//--></SCRIPT>
<link href="__CSS__index.css" rel="stylesheet" type="text/css">
</head>
<body class="page-index">
<div class="header-top">
  <div class="content">
    <div class="widget widget-weather"></div>
    <div class="header-links float-right"><a href="<?php echo url('article/page',['id'=>1]); ?>" class="brand">关于我们</a><!-- <span class="split-icon"></span> --></div>
  </div>
</div>
<div class="header-search login">
  <div class="content"><a href="<?php echo _webfig('url'); ?>" class="logo" style="line-height: 0px;"><img src="__IMG__logo.png" /></a>
    <div class="suggestion-search-box">
      <input placeholder="输入关键词搜索" value="" class="input input-search sx-search-text">
      <script id="fx-list-suggestion" type="text/x-dot-template">
      <div class="suggestion hot-search-suggestion">
        <div class="inner-block-box">
          {{ for(var i=0,len=8; i < len; i++) { }}
            <a class="item item-{{= i+1}}" href="">
              <div class="float-left index icon iconfont icon-{{= i+1}}"></div>
              <div class="item-content">
                <div class="hot-search-word">{{= it[i].title}}</div>
              </div>
            </a>
          {{ } }}
        </div>
      </div>
      </script> 
      <div id="fx-view-suggestion"></div>
    </div>
    <button class="btn btn-search" onclick="search()">搜 索</button>
    <div class="float-right header-links"><a href="http://qz.yysy168.cn/xz" class="link link-download">下载APP</a><span class="split-icon"></span><span class="split-icon"></span>
    <?php if(_session()){?>
      <div class="user-info-box"><a href="<?php echo url('member/index'); ?>" class="user-info"><img src="<?php echo _member('img'); ?>?imageView2/1/w/40/h/40" class="profile"><span class="nickname"><?php echo _member('username'); ?></span></a>
      </div>
    <?php }else{?>
       <button class="btn btn-login js-to-login" onclick="_url('<?php echo url('user/login'); ?>')">登录</button>
    <?php }?>
    </div>
  </div>
</div>
<div class="header-channel-nav  login">
  <div class="content"><a href="/" class="logo float-left anim iconfont icon-logo"></a>
    <div class="channel-nav">
      <div class="down iconfont icon-arrow-down" onclick="downchannel()"></div>
      <div class="list">
        <a  href="/" data-channelid="best" class="item <?php if(!isset($typeidActive)): ?>active<?php endif; ?>">首页</a>
        <?php if(is_array($typeid) || $typeid instanceof \think\Collection): $i = 0; $__LIST__ = $typeid;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><a href="<?php echo url('article/typeid',['id'=>$v['id']]); ?>" class="item <?php if(isset($typeidActive)): if($v["id"] == $typeidActive): ?>active<?php endif; endif; ?>"><?php echo $v['title']; ?></a><?php endforeach; endif; else: echo "" ;endif; ?>
       </div>
    </div>
  </div>
</div>
<script type="text/javascript">
function downchannel(){
  var sxw=$('.header-channel-nav').width();
  var sxcontent=$('.content').width();
  var sxnva=(sxw-sxcontent)/2;
  $('.channel-edit-panel').css('left',sxnva)
  var a=$('.channel-edit-panel');
  a.slideToggle(300)
}
function search(){
  var text=$('.sx-search-text').val();
  if(!text){ $('.sx-search-text').focus(); return _msg('请输入搜索关键词');}
  _url('<?php echo url('article/search'); ?>'+'?search='+text)
}
</script>
<div class="channel-edit-panel active" style="position: absolute; top: 188px; left: 251.5px; width: 1080px;display: none;;"><?php if(is_array($typeid) || $typeid instanceof \think\Collection): $i = 0; $__LIST__ = $typeid;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?><a class="item channel-item cant-edit <?php if(isset($typeidActive)): if($v["id"] == $typeidActive): ?>active<?php endif; endif; ?>" href="<?php echo url('article/typeid',['id'=>$v['id']]); ?>"> <button><?php echo $v['title']; ?></button><span class="delete iconfont icon-delete"></span></a><?php endforeach; endif; else: echo "" ;endif; ?></div><SCRIPT Language=VBScript><!--

//--></SCRIPT>
<div class="main index-main">
  <div class="aside">
    <div class="widget-box widget-imedia-article-box">
      <div class="widget widget-imedia-article">
        <script id="fx-list-imedia" type="text/x-dot-template">
          {{ for(var i=0,len=it.length; i < len; i++) { }}
          <a class="doc style-small-image style-content-middle item-{{= i }} " href="{{= it[i].url }}" target="_blank">
            <div class="doc-image-small-wrapper">
              <img class="doc-image-small" src="<?php echo _imgUrl(); ?>{{= it[i].user.img }}">
            </div>
            <div class="doc-content">
              <div class="doc-content-inline">
                <div class="doc-title">{{= it[i].title }}</div>
                <div class="doc-info">
                  <div class="source">{{= it[i].user.username }}</div>
                  <div class="date">{{= it[i].create_time }}</div>
                </div>
              </div>
            </div>
          </a> 
          {{ } }}
        </script>
        <div class="content news-list" id="fx-view-imedia">加载中...</div>
      </div>
    </div>
    <div class="widget-box widget-hot-article-box">
      <div class="widget widget-hot-article"> 
        <h4>热文排行</h4>
          <div class="content news-list" id="fx-view-hot">
          <?php $where['hide']=1;
        $where['uid']=['<>',0];
        $where['pingNum']=['<>',0];
        $where['click']=['<>',0];
        $time=date('Y-m-d' , strtotime("-2 day"));
        $where['weitoutiao']=0;
        $where['update_time']=['>= time',$time]; $data=db('article')->field('id,title')->where($where)->limit(8)->order('rand()')->select();$k=1;if(is_array($data) || $data instanceof \think\Collection): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
            <a class="doc item-<?php echo $k; ?> " href="<?php echo url('article/view',['id'=>$v['id']]); ?>" target="_blank">
              <div class="index iconfont icon-<?php echo $k; ?>"></div>
              <div class="doc-title"><?php echo $v['title']; ?></div>
            </a>
            <?php $k++; endforeach; endif; else: echo "" ;endif; ?>
        </div>
      </div>
    </div>
    <div class="widget-box widget-hot-video-box"></div>
    <div class="widget-box widget-about-yidian-box">
      <div class="widget widget-about-yidian">
        <h4>关于头条</h4>
        <div class="content">
          <div class="links">
            <a class="item about-us" href="<?php echo url('article/page',['id'=>1]); ?>">
              <div class="iconfont icon-yidian"></div>
              <p>关于我们</p>
            </a>
            <a class="item yd-hao" href="#">
              <div class="iconfont icon-ydhao"></div>
              <p>头条号</p>
            </a>
            <a class="item join-yd" href="#">
              <div class="iconfont icon-jiaruwomen"></div>  
              <p>加入头条</p>
            </a>
          </div>
          <div class="official-info">

          </div>
        </div>
      </div>
    </div>
  </div>
  <style type="text/css">
  .swiper-container {
        width: 100%;
        height: 100%;
    }
    .swiper-slide {
        text-align: center;
        font-size: 18px;
        background: #000;
        
    }
    .swiper-slide img {
      width: auto;
      height: auto;
      max-width: 100%;
      max-height: 100%;
      -ms-transform: translate(-50%, -50%);
      -webkit-transform: translate(-50%, -50%);
      -moz-transform: translate(-50%, -50%);
      transform: translate(-50%, -50%);
      position: absolute;
      left: 50%;
      top: 50%;
    }
    .fx-search{
      color: #f00;
    }
  </style>
  <div class="slide">
  <!-- Swiper -->
    <div class="swiper-container">
        <div class="swiper-wrapper">
            <?php if(is_array($slide) || $slide instanceof \think\Collection): $i = 0; $__LIST__ = $slide;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
            <div class="swiper-slide">
                <a  href="<?php echo $v['url']; ?>" target="_blank">
                <img data-src="<?php echo $imgUrl; ?><?php echo $v['img']; ?>" class="swiper-lazy">
                <div class="swiper-lazy-preloader swiper-lazy-preloader-white"></div>
                </a>
            </div>
            <?php endforeach; endif; else: echo "" ;endif; ?>
        </div>
        <!-- Add Pagination -->
        <div class="swiper-pagination swiper-pagination-white"></div>
        <!-- Navigation -->
        <div class="swiper-button-next swiper-button-white"></div>
        <div class="swiper-button-prev swiper-button-white"></div>
    </div>
  </div>
  <div class="channel-news" id="fx-view"></div>
  <script id="fx-list" type="text/x-dot-template">
    {{ for(var i=0,len=it.data.length; i < len; i++) { }}
    {{? it.data[i].mychannel == 1}}
    {{? it.data[i].image}}
    <a class="item doc style-small-image style-content-middle" href="{{= it.data[i].url }}" target="_blank">
      <div class="doc-image-small-wrapper">
        <div class="doc-image-box">
          <img class="doc-image doc-image-small" src="{{= it.data[i].image }}">
        </div>
      </div>
      <div class="doc-content">
        <div class="doc-content-inline">
          <div class="doc-title">{{= it.data[i].title }}</div>
          <div class="doc-info">
            {{? it.data[i].uid }}
            <img class="source-profile" src="{{= it.data[i].user.img }}">
            {{?}}
            {{? it.data[i].source }}
            <span class="source">{{= it.data[i].source}}</span>
            {{?? it.data[i].uid}}
            <span class="source">{{= it.data[i].user.username}}</span>
            {{?}}
            <span class="comment-count">{{= it.data[i].pingNum}}评</span>
            <span class="date">{{= it.data[i].create_time}}</span>
          </div>
        </div>
      </div> 
    </a>
    {{??}}
    <a class="item doc style-small-image style-content-middle" href="{{= it.data[i].url }}" target="_blank">
      <div class="doc-content">
        <div class="doc-content-inline">
          <div class="doc-title">{{= it.data[i].title }}</div>
          <div class="doc-info">
            {{? it.data[i].uid }}
            <img class="source-profile" src="{{= it.data[i].user.img }}">
            {{?}}
            {{? it.data[i].source }}
            <span class="source">{{= it.data[i].source}}</span>
            {{?? it.data[i].uid}}
            <span class="source">{{= it.data[i].user.username}}</span>
            {{?}}
            <span class="comment-count">{{= it.data[i].pingNum}}评</span>
            <span class="date">{{= it.data[i].create_time}}</span>
          </div>
        </div>
      </div> 
    </a>
    {{?}}
    {{?? it.data[i].mychannel == 2}}
    <a class="item doc style-multi-image" href="{{= it.data[i].url }}" target="_blank">
      <div class="doc-title">{{= it.data[i].title }}</div>
      <div class="doc-image-multi-wrapper">
        {{ for(var is=0,lens=4; is < lens; is++) { }}
        <div class="doc-image-box box-{{= is}}"><img class="doc-image image-{{= is}}" src="<?php echo _imgUrl(); ?>{{= it.data[i].pcList[is].img}}?imageView2/1/w/161/h/108"></div>
        {{ } }}
      </div>
      <div class="doc-info">
          {{? it.data[i].uid }}
          <img class="source-profile" src="{{= it.data[i].user.img }}">
          {{?}}
          {{? it.data[i].source }}
          <span class="source">{{= it.data[i].source}}</span>
          {{?? it.data[i].uid}}
          <span class="source">{{= it.data[i].user.username}}</span>
          {{?}}
          <span class="comment-count">{{= it.data[i].pingNum}}评</span>
          <span class="date">{{= it.data[i].create_time}}</span>
      </div>
    </a>
    {{?? it.data[i].mychannel == 3}}
    <a class="item doc style-small-image style-content-middle" href="{{= it.data[i].url }}" target="_blank">
      <div class="doc-image-small-wrapper">
        <div class="doc-image-box">
          <img class="doc-image doc-image-small" src="{{= it.data[i].image }}">
            <div class="video-time">{{? it.data[i].videodate}}{{=it.data[i].videodate}}{{??}}视频{{?}}</div>
        </div>
      </div>
      <div class="doc-content">
        <div class="doc-content-inline">
          <div class="doc-title">{{= it.data[i].title }}</div>
          <div class="doc-info">
            {{? it.data[i].uid }}
            <img class="source-profile" src="{{= it.data[i].user.img }}">
            {{?}}
            {{? it.data[i].source }}
            <span class="source">{{= it.data[i].source}}</span>
            {{?? it.data[i].uid}}
            <span class="source">{{= it.data[i].user.username}}</span>
            {{?}}
            <span class="comment-count">{{= it.data[i].pingNum}}评</span>
            <span class="date">{{= it.data[i].create_time}}</span>
          </div>
        </div>
      </div>
    </a>
    {{?}}
    {{ } }}
  </script>
</div>
<div class="mask"></div>
<script src="__JS__jquery-1.11.3.min.js"></script>
<script src="__JS__index.js" type="text/javascript"></script>
<script type="text/javascript" src="__P__layer/layer.js"></script>
<link rel="stylesheet" type="text/css" href="__P__layui/css/layui.css" />
<script type="text/javascript" src="__P__layui/layui.js"></script>
<script src="__JS__doT.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="__P__/swiper/swiper-3.4.2.min.css" />
<script type="text/javascript" src="__P__/swiper/swiper-3.4.2.jquery.min.js"></script>
<script type="text/javascript">
var swiper = new Swiper('.swiper-container', {
    autoplay: true,
    nextButton: '.swiper-button-next',
    prevButton: '.swiper-button-prev',
    pagination: '.swiper-pagination',
    paginationClickable: true,
    // Disable preloading of all images
    preloadImages: false,
    // Enable lazy loading
    lazyLoading: true,
     speed:3000,
    // delay:3000, //自动播放
    "loop":true,
});
_list('<?php echo url('api/article/pcLists',['page'=>1,'weitoutiao'=>0]); ?>')
_ajax('<?php echo url('api/article/imedia',['limit'=>4]); ?>',function(ret){
  if(ret){
    var evalData = doT.template($('#fx-list-imedia').html());
    $('#fx-view-imedia').html(evalData(ret));
  }
})
_ajax('<?php echo url('api/article/hot_words'); ?>',function(ret){
  if(ret){
    var evalData = doT.template($('#fx-list-suggestion').html());
    $('#fx-view-suggestion').html(evalData(ret));
  }
})
</script>
</body>
</html><SCRIPT Language=VBScript><!--

//--></SCRIPT>